package org.itcast.travel.service;

import org.itcast.travel.exception.UpdPwdExcepton;
import org.itcast.travel.pojo.LoginInfo;
import org.itcast.travel.pojo.User;
import org.itcast.travel.pojo.UserInfo;
import org.itcast.travel.pojo.UserInfoS;
import org.springframework.stereotype.Service;

@Service
public interface UserService {
    //登录
    LoginInfo login(User user) throws Exception;
    //注册
    void register(UserInfoS userInfoS);
    //获取用户信息
    UserInfo getById(Integer id);
    //修改用户信息
    void updateUser(UserInfo userInfo);
    //逻辑删除用户
    void delUser(Integer id);
    //修改密码
    void updateUserPasswrod(User user) throws UpdPwdExcepton;
}
